<?php
load_class('TMIS_TableDataGateway');
class Model_Sample_Chuku extends TMIS_TableDataGateway {
    var $tableName = 'sample_chuku';
    var $primaryKey = 'id';
    var $primaryName = 'chukuCode';
    var $needCreateLog = true;// 需要打日志则加此参数
    var $codeField = 'chukuCode';// 编号字段
    var $moduleName = '样品间出库管理';// 模块名称
    var $hasMany = array (
        array(
            'tableClass' => 'Model_Sample_Chuku2Product',
            'foreignKey' => 'chukuId',
            'mappingName' => 'Products',
            'sort' => 'id'
        )
    );

}


?>